Misc

object Misc

Random useful stuff

Author

Sean D. Reilly;

$Author: sreilly $

$Date: 2001/10/01 16:04:55 $

$Revision: 1.2 $

Functions

Link copied to clipboard
fun <T> addNoDuplicates(list: MutableList<T>, candidate: T): Boolean

Add an item to a list, checking for duplicates. If the item is duplicated, it is not added and false is returned. This allows you to use a List container like a Set. There are situations where the List interface is more useful than the Set interface, but you cannot allow duplicates.

Link copied to clipboard
fun <T> isEqual(object1: T?, object2: T?): Boolean

Determine if two objects of the same type are equal or not.

Link copied to clipboard
fun isInstanceOf(obj: Any, vararg classes: Class<*>?): Boolean

Checks whether supplied class isinstance of any of the supplied (multiple classes)...

Link copied to clipboard
fun isZero(values: LongArray?, columnCount: Int): Boolean

Determine if all the values in an array are zero or not. Please note that this is only available since Moneydance build 754